﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentation/Department/DepHead.Master" AutoEventWireup="true" CodeBehind="StationeryCollectionDetails_head.aspx.cs" Inherits="ADSMS.Presentation.Department.StationeryCollectionDetails_head" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div class="container">
        <div class="jumbotron">
            <div class="row">

                 <asp:Panel ID="PanelError" runat="server" CssClass="alert alert-dismissable alert-danger" Visible="False">
                    <strong>Sorry! </strong>There is no data. Please, redo your transactions.
                </asp:Panel>

                <asp:Panel ID="PanelSubmit" runat="server" CssClass="alert alert-dismissable alert-success" Visible="False">
                    <strong>Updated!</strong> This Collections details has been updated.
                </asp:Panel>

                <div class="col-lg-9">
                    <div class="well">
                        <div class="bs-example form-horizontal">
                            <fieldset>
                                <legend>Stationery Collection Details</legend>

                                <div class="form-group">
                                    <asp:Label ID="Label1" CssClass="col-lg-4 control-label" runat="server" Text="Department Name:"></asp:Label>

                                    <div class="col-lg-6">

                                        <asp:Label ID="lblDeptName" runat="server" CssClass="col-lg-6 control-label"></asp:Label>

                                    </div>
                                </div>

                                <div class="form-group">
                                    <asp:Label ID="Label2" CssClass="col-lg-4 control-label" runat="server" Text="Department's Contact Name:"></asp:Label>
                                    <div class="col-lg-6">
                                        <asp:TextBox ID="txtDeptContactName" runat="server" CssClass="form-control" MaxLength="45" ValidationGroup="CollectionPoint"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvContactName" runat="server" ControlToValidate="txtDeptContactName" ErrorMessage="*Please Fill" ForeColor="Red" ValidationGroup="CollectionPoint" CssClass="control-label">*Please Fill</asp:RequiredFieldValidator>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <asp:Label ID="Label3" CssClass="col-lg-4 control-label" runat="server" Text="Department's Contact Number:"></asp:Label>
                                    <div class="col-lg-6">
                                        <asp:TextBox ID="txtDeptContactNum" runat="server" CssClass="form-control" pattern="^[0-9]+$" MaxLength="8"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvContactNo" runat="server" ErrorMessage="*Please Fill" ControlToValidate="txtDeptContactNum" CssClass="control-label" ForeColor="Red" ValidationGroup="CollectionPoint">*Please Fill</asp:RequiredFieldValidator>
                                        <%--<asp:DropDownList CssClass="form-control" ID="deptcontactNumberddl" runat="server" DataSourceID="DeptContactNumber" DataTextField="DepContactNumber" DataValueField="DepContactNumber">
                                        </asp:DropDownList>
                                        <asp:EntityDataSource ID="DeptContactNumber" runat="server" ConnectionString="name=stationeryEntities" DefaultContainerName="stationeryEntities" EnableFlattening="False" EntitySetName="departments" EntityTypeFilter="department" Select="it.[DepContactNumber]">
                                        </asp:EntityDataSource>--%>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <asp:Label ID="Label4" CssClass="col-lg-4 control-label" runat="server" Text="Current Department Representative"></asp:Label>
                                    <div class="col-lg-6">
                                        <asp:Label ID="lblCurrentDeptRep" runat="server" CssClass="col-lg-4 control-label"></asp:Label>
                                   <%--<asp:DropDownList ID="deptcontactDesignationddl" runat="server"></asp:DropDownList>--%>
                                   <asp:LinkButton ID="lnkbtnChangeDeptRepName" runat="server" OnClick="lnkbtnChangeDeptRepName_Click" CssClass="col-lg-2 control-label">Change Representative</asp:LinkButton>
                                    <%--<asp:LinkButton ID="lnkbtnDelete" runat="server" CssClass="col-lg-2 control-label" OnClick="lnkbtnDelete_Click">Delete</asp:LinkButton>--%>
                                   <asp:LinkButton ID="lnkbtnCancel" runat="server" OnClick="lnkbtnCancel_Click" CssClass="col-lg-2 control-label">Cancel</asp:LinkButton>
                                    </div>
                                </div>

                                <asp:Panel ID="PanelDeptRepName" runat="server" Visible="False">
                                <div class="form-group">
                                    <asp:Label CssClass="col-lg-4 control-label" ID="Label5" runat="server" Text="Choose Department Representative:"></asp:Label>
                                    <div class="col-lg-6">

                                        <asp:DropDownList CssClass="form-control" ID="ddlDeptRep" runat="server">
                                        </asp:DropDownList>

                                    </div>
                                </div>
                                    </asp:Panel>

                                <div class="form-group">
                                    <asp:Label CssClass="col-lg-4 control-label" ID="Label6" runat="server" Text="Collection Point:"></asp:Label>
                                    <div class="col-lg-6">
                                        <asp:DropDownList CssClass="form-control" ID="ddlCollectionID" runat="server" DataSourceID="collectionPoint" DataTextField="CollectionPointName" DataValueField="CollectionPointID">
                                        </asp:DropDownList>

                                        <asp:EntityDataSource ID="collectionPoint" runat="server" ConnectionString="name=stationeryEntities" DefaultContainerName="stationeryEntities" EnableFlattening="False" EntitySetName="collectionPoints" EntityTypeFilter="collectionPoint" Select="it.[CollectionPointName], it.[CollectionPointID]">
                                        </asp:EntityDataSource>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-lg-10 col-lg-offset-4">
                                        <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="btn btn-primary" OnClick="btnSubmit_Click" ValidationGroup="CollectionPoint" />
                                        <asp:Button ID="btnReset" runat="server" Text="Reset" CssClass="btn btn-success" OnClick="btnReset_Click"/>
                                    </div>
                                </div>

                            </fieldset>
                        </div>

                    </div>
                </div>

            </div>


        </div>
    </div>
         
</asp:Content>
